﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StackExchange.Profiling;

namespace MyAnim.Models
{
    public static class AnimContext
    {
        private readonly static MyAnimEntities _Context = new MyAnimEntities();


        public static MyAnimEntities GetContext
        {
            get
            {
                //var conn = new StackExchange.Profiling.Data.EFProfiledDbConnection(_Context.Connection, MiniProfiler.Current);
                return _Context;
                    //StackExchange.Profiling.Data.ObjectContextUtils.CreateObjectContext<MyAnimEntities>(conn);
            }
        }
    }
}